package com.yoso.shop.domain.commodity;

import com.yoso.shop.infrastructure.base.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Lenovo
 */
public class CommodityBranchEntity extends BaseEntity implements Serializable {
    /**
     * 商品分支代码
     */
    private String code;
    /**
     * 商品分支名称
     */
    private String name;
    /**
     * 商品主分支
     */
    private String master;

    private static final long serialVersionUID = 1L;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getMaster() {
        return master;
    }

    public void setMaster(String master) {
        this.master = master == null ? null : master.trim();
    }

    @Override
    public String toString() {
        return "CommodityBranchEntity{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", master='" + master + '\'' +
                '}';
    }
}